package com.aizhixin.lab.company.repository;

import com.aizhixin.lab.company.entity.Log;

import java.util.ArrayList;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

public interface LogRepository extends JpaRepository<Log, Long> {
	
    public List<Log> findAllByIdInAndDeleteFlag(ArrayList<Long> ids,Integer deleteFlag);
    List<Log> findByCreatedByAndOperationTypeAndDeleteFlagOrderByCreatedDateDesc(Long createBy,String operationType,Integer deleteFlag);
    public long deleteByIdIn(ArrayList<Long> ids);
}
